package com.rolerealm.service.impl;

import com.rolerealm.service.ModelRoutingService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Slf4j
@Service
@RequiredArgsConstructor
public class MockModelRoutingServiceImpl implements ModelRoutingService {

    @Override
    public String routeModel(String languageCode) {
        // 简单规则：zh -> ERNIE; en -> GPT-4
        if (languageCode == null) {
            return "gpt-4";
        }
        String lang = languageCode.toLowerCase();
        if (lang.startsWith("zh")) {
            return "ernie-bot";
        }
        return "gpt-4";
    }
}


